﻿@using HardHatCore.ApiModels.Plugin_BaseClasses;
@using HardHatCore.ApiModels.Requests;

<MudDialog>
    <DialogContent>
        <ImplantCreation IsPostEx="true"/>
    </DialogContent>
<DialogActions>
    <MudButton OnClick="@Submit">Ok</MudButton>
    <MudButton OnClick="@Cancel">Cancel</MudButton>
</DialogActions>
</MudDialog>

@code {
    //this is a dialog version of the ImplantCreation component it is used for commands that need new implants
    //ex. spawn, inject, jump, etc.
    [CascadingParameter] 
    public MudDialogInstance Dialog { get; set; }
    public static ExtImplantCreateRequest_Base PostExSpawnRequest { get; set; } = new ExtImplantCreateRequest_Base();

    void Submit() =>  Dialog.Close(DialogResult.Ok(true));
    void Cancel() => Dialog.Cancel();

        
}